package exer01;

/**
 * @author shkstart
 * @date 2022/5/12 - 22:05
 */
public class Circle extends GeometricObject{
    private double radius;

    public Circle(double radius,String color,double weight) {
        this.radius = radius;
        this.color = color;
        this.weight = weight;
    }


    public void setRadius(double radius) {
        this.radius = radius;
    }

    public double getRadius() {
        return radius;
    }


    public double findArea() {
        return Math.PI * getRadius() * getRadius();
    }
}
